package com.rgs.gateway.admin;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.ApplicationContext;

import java.util.Arrays;

/**
 * @author RenGaoshuai
 * @date 2024/6/26 15:41
 * @description
 */
@SpringBootApplication
@EnableDiscoveryClient
public class GatewayAdminApplication {

    public static void main(String[] args) {
        ApplicationContext ctx = SpringApplication.run(GatewayAdminApplication.class, args);
        String[] beans = ctx.getBeanDefinitionNames();
        Arrays.sort(beans);
        for (String bean : beans) {
            System.out.println(bean + " of Type :: " + ctx.getBean(bean).getClass());
        }


    }
}
